﻿@model AdminIndexModel
@{
    ViewBag.Title = Resources.EnetaMvc.PageTitle_Admin;
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<style>
h3 {
font-size: 16px !important;
font-weight: bold;
}
</style>
<div class="content-txt">

    <div class="blog-head">
        <h2>@Resources.EnetaMvc.PageTitle_Admin</h2>
    </div>
    <div class="content-info-area">
        <h3>@Resources.EnetaMvc.Label_PendingBlogPosts</h3>
        <ul>
        @foreach (var post in Model.PendingBlogPosts)
        { 
            <li>
                <a href="@Url.Action("Details", "BlogPosts", new { id = post.Id })">@post.Title</a><br />
                @post.Created.ToString() | @post.BlogName
            </li>
        }
        </ul>

        <h3>@Resources.EnetaMvc.Label_PendingArticles</h3>
        <ul>
        @foreach (var post in Model.PendingArticles)
        { 
            <li>
                <a href="@Url.Action("Details", "Articles", new { id = post.Id })">@post.Title</a><br />
                @post.Created.ToString() | @post.CreatedByUserName
            </li>
        }
        </ul>

        <h3>@Resources.EnetaMvc.Label_PendingBlogs</h3>
        <ul>
        @foreach (var blog in Model.PendingBlogs)
        { 
            <li>
                <a href="@Url.Action("Details", "Blogs", new { id = blog.Id })">@blog.Name</a><br />
                @blog.Created.ToString() | @blog.CreatedByUserName
            </li>
        }
        </ul>
    </div>
</div>